package com.tqjc.system.C24012.core.service.impl;

import com.tqjc.system.C24012.common.constant.ConfigConstants;
import com.tqjc.system.C24012.core.service.ConfigService;
import com.tqjc.system.C24012.core.service.SysBusinessService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author: 86195
 * @CreateTime: 2024-07-10  10:19
 * @Description: 业务服务类
 * @Version: 1.0
 */
@Service
@Slf4j
public class SysBusinessServiceImpl implements SysBusinessService {

    @Autowired
    private ConfigService configService;


    @Override
    public void startTask() {

        //1.天车移动至安全避让位置

        //2.更改配置表中天车的状态
        configService.updateConfigVal(ConfigConstants.CONFIG_ID_WORK_STATUS,ConfigConstants.CONFIG_TYPE_CRANE_INFO,"1");

        //启动两个线程（处理入库任务与出库任务，设计读表数据）

    }
}
